export default {
    //登录
    LoginApi(){
        return `/cms/login`
    },
    //获取sku产品列表
    GetGoodsApi:(page=1,size=10)=>{
        return `/cms/goods?page=${page}&size=${size}`
    },
    //搜索sku产品列表
    SearchGoodsApi:()=>{
        return `/cms/goods/search`
    },
    //获取品牌列表
    GetBrandApi:()=>{
        return `/cms/goods/brands`
    },
    //获取品牌列表(分页)
    GetBrandsApi:()=>{
        return `/cms/goods/brandsByPage`
    },
    //根据品牌id获取系列
    GetSeriesApi:(brandId)=>{
        return `/cms/goods/brands/${brandId}/series`
    },
    //获取所有标签
    GetTagsApi:()=>{
        return `/cms/goods/params`
    },
    //新增sku商品
    AddGoodsApi:()=>{
        return `/cms/goods`
    },
    //删除sku商品
    DelGoodsApi:(id)=>{
        return `/cms/goods/${id}`
    },
    //修改sku商品
    editGoodsApi:(id)=>{
        return `/cms/goods/${id}`
    },
    //新增sku价格
    AddGoodsPriceApi:(id)=>{
        return `/cms/goods/${id}/prices`
    },
    //编辑sku价格
    EditGoodsPriceApi:(goodId,id)=>{
        return `/cms/goods/${goodId}/prices/${id}`
    },
    //标价sku配置
    EditGoodsOptions:(id)=>{
        return `/cms/goods/${id}/params`
    },
    //新增品牌
    AddBrandApi:()=>{
        return `/cms/goods/brands`
    },
    //编辑品牌
    EditBrandApi:(id)=>{
        return `/cms/goods/brands/${id}`
    },
    //新增系列
    AddSeriesApi:(id)=>{
        return `/cms/goods/series`
    },
    //编辑系列
    EditSeriesApi:(id)=>{
        return `/cms/goods/series/${id}`
    },
    //更新分类
    EditCategoryApi:(id)=>{
        return `/cms/goods/params/categories/${id}`
    },
    //新增分类
    AddCategoryApi:()=>{
        return `/cms/goods/params/categories`
    },
    //新增特性
    AddLabelsApi:()=>{
        return `/cms/goods/params/labels`
    },
    //编辑特性
    EditLabelsApi:(id)=>{
        return `/cms/goods/params/labels/${id}`
    },
    //转移特性
    TransferLabelsApi:(id,idCategory)=>{
        return `/cms/goods//params/labels/${id}/${idCategory}`
    },
    //新增标签
    AddLabelValuesApi:()=>{
        return `/cms/goods/params/values`
    },
    //编辑标签
    EditLabelValuesApi:(id)=>{
        return `/cms/goods/params/values/${id}`
    },
    //合并标签
    MergeLabelValuesApi:()=>{
        return `/cms/goods/params/values/merge`
    },
    //获取商户列表
    GetBusinessApi(){
        return '/cms/business/queries'
    },
    //获取省份列表
    GetProvincesApi(){
        return `/cms/provinces`
    },
    //获取市/县
    GetCitysApi(){
        return `/cms/address`
    },
    //新增商户
    // AddBusinessApi:()=>{
    //     return '/cms/business'
    // },
    // //编辑商户
    // EditBusinessApi:(id)=>{
    //     return `/cms/business/${id}`
    // },
    //
    PgcPermissionsApi:(id)=>{
        return `/cms/pgcPermissions/${id}`
    },
    //获取用户
    GetUserApi(){
        return  `/cms/users`
    },
    //更新用户
    EditUserApi(id){
        return `/cms/users/${id}`
    },
    //新增用户
    InsertUserApi(){
        return `/cms/insertUsers`
    },
    //获取货源列表
    GetGoodsSourceApi(){
        return `/cms/goodSources/`
    },
    //编辑货源
    EditGoodsSourceApi(id){
        return `/cms/goodSources/${id}`
    },
    //获取图库
    GetPicsApi(){
        return `/cms/pics`
    },
    //编辑图库
    EditPicsApi(id){
        return `/cms/pics/${id}`
    },
    //询价列表
    GetInquiryApi(){
        return `/cms/enquiries`
    },
    //报价列表
    GetOfferApi(){
        return `/cms/offerPrices`
    },
    /**UGC/PGC部分 */
    //获取创作列表
    GetUgcListApi(){
        return `/cms/ugc/getUgcList`
    },
    //删除创作
    DelUgcApi(id){
        return `/cms/ugc/delUgc/${id}`
    },
    //获取标签列表
    GetUgcTagApi(){
        return `/cms/label/getUgcLabelList`
    },
    //设置UGC/PGC推荐状态
    SetUgcPgcEssenceApi(){
        return `/cms/create/setUgcPgcEssence`
    },
    //获取UGC/PGC绑定的标签
    GetUgcPgcBindTagApi(){
        return `/cms/label/getUgcPgcLabels`
    },
    //为UGC/PGC绑定标签
    UgcPgcBindTagApi(){
        return `/cms/label/addUgcPgcLabel`
    },
    //清除UGC/PGC绑定的标签
    DelUgcPgcBindTagApi(id){
        return `/cms/label/delUgcPgcLabel/${id}`
    },
    //添加标签
    AddUgcTagApi(){
        return `/cms/label/addLabel`
    },
    //修改标签
    EditUgcTagApi(){
        return `/cms/label/modLabel`
    },
    //删除标签
    DelUgcTagApi(id){
        return `/cms/label/delLabel/${id}`
    },
    //合并标签
    MergeUgcTagApi(){
        return `/cms/label/mergeLabel`
    },
    //评论列表
    GetCommentListApi(){
        return `/cms/comment/getCmsCommentList`
    },
    //删除评论
    DelCommentApi(id){
        return `/cms/comment/delComment/${id}`
    },
    //PGC列表
    GetPgcListApi(){
        return `/cms/create/getPgcList`
    },
    //审核PGC
    SetPgcStatusApi(id){
        return `/cms/create/pgcStatus/${id}`
    },
    //获取所有权限组
    GetPermissionsGroupApi(){
        return `/cms/groups`
    },
    //获取所有权限
    GetPermissionsApi(){
        return `/cms/permissions`
    },
    //获取权限组已选权限
    GetPermissionApi(id){
        return `/cms/groups/${id}/permissions`
    },
    //设置/删除权限组
    SetPermissionApi(id){
        return `/cms/groups/${id}`
    },
    //新增一个权限组
    AddPermissionGroupApi(){
        return `/cms/groups`
    },
    //获取一个用户已拥有的权限组
    GetUserPermissionGroupApi(id){
        return `/cms/user-permission/${id}`
    },
    //设置一个用户关联某个权限组
    SetUserPermissionApi(userId,groupId){
        return `/cms/permissions-effective/${userId}/${groupId}`
    }
}